<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			button{
				padding: 20px;
				border: 1px solid transparent;
			}
			div{
				width: 400px;
				height: 300px;
				border: 1px solid transparent;
				background-color: #fed600;
				text-align: center;
				line-height: 250px;
			}
		</style>
		<script src="../js/jquery-1.11.1.js"></script>
	</head>
	<body>
		<button id="t1">tab01</button>
		<button id="t2">tab02</button>
		<button id="t3">tab03</button>
		<div id="target" style="display: none;">
		    <p>tab文字内容一</p>
		</div>
		<div id="target1" style="display: none;">
		    <p>tab文字内容二</p>
		</div>
		<div id="target2" style="display: none;">
		    <p>tab文字内容三</p>
		</div>
		<script>
			$("#t1").click(function(){
				$("#t1").css("background-color","#fed600");
				$("#t2").css("background-color","");
				$("#t3").css("background-color","");
				$("div").css("display","none");
				$("#target").css("display","block");
			});
			
			$("#t2").click(function(){
				$("#t2").css("background-color","#fed600");
				$("#t1").css("background-color","");
				$("#t3").css("background-color","");
				$("div").css("display","none");
				$("#target1").css("display","block");
			});
			
			$("#t3").click(function(){
				$("#t3").css("background-color","#fed600");
				$("#t1").css("background-color","");
				$("#t2").css("background-color","");
				$("div").css("display","none");
				$("#target2").css("display","block");
			});
		</script>
	</body>
</html>